/**
 * Copyright (c) 2016-2019 优博信息科技 All rights reserved.
 *
 * https://www.jnyoubo.com
 *
 * 版权所有，侵权必究！
 */

package com.youbo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户
 *
 * @author macy
 */
@Data
@TableName("ZZ_ORDER")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 *
	 */
	@TableId(type = IdType.AUTO)
	private Integer orderid;

	/**
	 * 订单号
	 */
	@TableField(value ="outTradeNo")
	private String outTradeNo;


	/**
	 * 业务类型
	 */
	@TableField(value ="type")
	private String type;

	@TableField(value ="amount")
	private BigDecimal amount;
	@TableField(value ="payAmount")
	private BigDecimal payAmount;
	@TableField(value ="balancePayment")
	private BigDecimal balancePayment;


	/**
	 * 支付时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(value ="payTime")
	private Date payTime;

	/**
	 * 支付方式，AliPay 支付宝，WeChatPay 微信
	 */
	@TableField(value ="payType")
	private String payType;


	private Long brid;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(value ="createTime")
	private Date createTime;

	/**
	 * 备注
	 */
	private String remarks;

	/**
	 * 发票号码
	 */
	private String fphm;




}
